import { notFound } from 'next/navigation'; import { fetchJson } from '@/lib/utils/server'; import { ResultDto } from '@/types/response/common'; import { ChannelDetail } from '@/types/channel'; type Props = { params: Promise<{ identifier: string }>; }; export default async function ChannelIntroPage({ params }: Props) { const { identifier } = await params; const res: ResultDto = await fetchJson(`/api/channel/${encodeURIComponent(decodeURIComponent(identifier))}`, { method: 'GET' }); if (!res.data) { notFound(); } const ch = res.data; return (
{ch.description ? (

{ch.description}

) : (

채널 소개가 없습니다

)}
); }